//
//  EventListenerHelper.h
//  aloqa
//
//  Created by mkoo sun on 12-8-27.
//  Copyright (c) 2012年 mogenesis. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "EventListener.h"
#import "EventService.h"

//-------------------------------------------------------------------------------------------
@interface EventStub : NSObject
{
    NSString* eventid;
    int stub;
    int count;   
}
@property (nonatomic, copy) NSString* eventid;
@property (nonatomic, assign) int stub;
@property (nonatomic, assign) int count; 

+ (id) create:(NSString*)eventid stub:(int)stub;

@end


//-------------------------------------------------------------------------------------------
@interface EventListenerHelper : NSObject <EventListener>
{
    EventService* service;
    NSMutableDictionary* stubs;
}
@property (nonatomic, retain) EventService* service;
@property (nonatomic, assign) NSMutableDictionary* stubs;

- (int) attahEvent:(NSString*)eventid;

@end
